package rss.events 
{
	import rss.IRssFeedModel;
	import flash.events.Event;

	/// @eventType	rss.events.RssFeedEvent.LOADED
	[Event(name = "loaded", type = "rss.events.RssFeedEvent")] 
	
	
	/**
	 * TODO: document
	 * 
	 * @author Luke Van In
	 */
	public class RssFeedEvent extends Event 
	{
		
		//
		public static const LOADED:String = "loaded";
		
		
		
		// private variables
		private var _feed:IRssFeedModel;
		
		
		
		/**
		 * 
		 */
		public function get feed():IRssFeedModel
		{
			return this._feed;
		}
		
		
		
		/**
		 * Constructor
		 * 
		 * @param	type
		 * @param	feed
		 * @param	bubbles
		 * @param	cancelable
		 */
		public function RssFeedEvent(type:String, feed:IRssFeedModel, bubbles:Boolean = false, cancelable:Boolean = false) 
		{
			super(type, bubbles, cancelable);
			
			this._feed = feed;
		}
		
		
		
		/**
		 * 
		 * @return
		 */
		override public function clone():Event 
		{
			return new RssFeedEvent(this.type, this.feed, this.bubbles, this.cancelable);
		}
		
	}

}